[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
INKEY() (STRING)
Function
Get the next key input.
Syntax
INKEY() No arguments are required
Return Type & Value
STRING
Returns a single character for displayable characters or a string with
the name of the function or cursor control key for cursor movement and
function keys.
Remarks
This function will return a single character long string for most key
presses. Additionally, it will return key names for function keys and
cursor movement keys if it finds an ANSI sequence or DOORWAY mode
sequence. It will return keystrokes from both the remote caller as well
as the local BBS node. However, realize that many function keys are
reserved by PCBoard for BBS related uses and may not be available for
your applications that require SysOp input.
Examples
STRING key
WHILE (key <> CHR(27)) DO
LET key = INKEY()
IF (LEFT(key,5) = "SHIFT") THEN
PRINTLN "It was a shifted key"
ELSEIF (LEFT(key,4) = "CTRL") THEN
PRINTLN "It was a control key"
ELSEIF (LEFT(key,3) = "ALT") THEN
PRINTLN "It was an alternate key"
ENDIF
PRINTLN "The key was ",key
ENDWHILE
See Also:
KINKEY()
MGETBYTE()
MINKEY()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson